﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //Tiger a = new Tiger();
            //a.Giao();
            //a.Go();
            //a.Sleep();
            //a.Eat();
            //a.Tsay();
            //Console.WriteLine("--------------------------------");


            //Cat b = new Cat();
            //b.Giao();
            //b.Go();
            //b.Sleep();
            //b.Eat();
            //b.Csay();
            //Console.WriteLine("--------------------------------");

            //Eagle c = new Eagle();
            //c.Giao();
            //c.Fly();
            //c.Sleep();
            //c.Eat();
            //c.Bsay();
            //Console.WriteLine("--------------------------------");

            //Yz d = new Yz();
            //d.Giao();
            //d.Fly();
            //d.Sleep();
            //d.Eat();
            //d.Ysay();
            


            
            Console.WriteLine("欢迎来到闽大食堂，请问你要吃什么动物呢：1、猫；2、燕子；3、老鹰；4、老虎");
            int key = int.Parse(Console.ReadLine());
            Zoon a;

            switch (key)
            {
                case 1:
                    a = new Cat();
                    break;
                case 2:
                    a = new Yz();
                    break;
                case 3:
                    a = new Eagle();
                    break;
                case 4:
                    a = new Tiger();
                    break;
                default:
                    Console.WriteLine("你别乱选。");
                    a = new Tiger();
                    break;
            }
            Jy s = new Jy();
            s.Jyang(a);



            Console.ReadKey();




        }
    }
}
